home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="utf-8"?> <html><head><title>Executing an SQL Command Directly</title><meta name="filename" content="text/common/guide/data_enter_sql"/><meta name="language" content="en-US"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css"> table.Tabelle1{ } span.Tabelle1A{ width:1.499cm;} span.Tabelle1B{ width:16.498cm;} tr.Tabelle11{ } td.Tabelle1A1{ } table.Tabelle3{ } span.Tabelle3A{ width:1cm;} span.Tabelle3C{ width:15.997cm;} td.Tabelle3A1{ } p.P1{ } span.T1{ font-weight:bold;} span.fr1{ } span.fr2{ } span.fr3{ } </style></head><body> <p class="P1"/> <p class="Head1"><help:key-word value="SQL; executing directly" tag="kw68130_1" xmlns:help="http://openoffice.org/2000/help"/><help:to-be-embedded Eid="data_enter_sql" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68130">Executing an SQL Command Directly</help:link></help:to-be-embedded></p> <p class="Paragraph">You can also control a database directly with the help of SQL commands, and you can create and edit spreadsheets, create queries and so on.</p> <table><tr class="Tabelle11"><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A"> <p class="Paragraph"><draw:image draw:style-name="fr1" draw:name="HIND_1" text:anchor-type="paragraph" svg:width="0.847cm" svg:height="0.847cm" draw:z-index="0" xlink:href="65980" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p> </span></th><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1B"> <p class="Paragraph">Not all database types support all SQL instructions. If necessary, find out which SQL commands are supported by your database system.</p> </span></th></tr></table> <p class="Paragraph"/> <table><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TableHead">1.</p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TableHead"/> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph">Open the <span class="T1">Administrate Data Sources</span> dialog with <span class="T1">Tools - Data Sources</span>.</p> </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable">2.</p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"/> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph">In the list, select the data source which you want to address directly via SQL and select the <span class="T1">Query</span> page.</p> </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable">3.</p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"><draw:image draw:style-name="fr2" draw:name="Grafik2" text:anchor-type="paragraph" svg:width="0.661cm" svg:height="0.661cm" draw:z-index="1" xlink:href="67351" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph">Click the <span class="T1">Enter New SQL Command</span> icon or</p> </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"/> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"><draw:image draw:style-name="fr2" draw:name="Grafik3" text:anchor-type="paragraph" svg:width="0.661cm" svg:height="0.661cm" draw:z-index="2" xlink:href="67352" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph">select an existing query from the list and click the <span class="T1">Enter SQL Command</span> icon.</p> </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable">4.</p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"/> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph">In the <span class="T1">Query</span> dialog, enter the SQL command that you want to execute or change an existing command according to your requirements.</p> </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable">5.</p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"><draw:image draw:style-name="fr2" draw:name="Grafik4" text:anchor-type="paragraph" svg:width="0.661cm" svg:height="0.661cm" draw:z-index="3" xlink:href="67353" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph">Click the <span class="T1">Execute</span> icon. The result of the query is displayed in the upper window.</p> </span></td></tr><tr class=""><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable">6.</p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3A"> <p class="TextInTable"><draw:image draw:style-name="fr2" draw:name="Grafik5" text:anchor-type="paragraph" svg:width="0.661cm" svg:height="0.661cm" draw:z-index="4" xlink:href="66318" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/><draw:image draw:style-name="fr3" draw:name="Grafik6" text:anchor-type="paragraph" svg:y="0.614cm" svg:width="0.661cm" svg:height="0.661cm" draw:z-index="5" xlink:href="67354" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" draw:filter-name="GIF - Graphics Interchange" xmlns:draw="http://openoffice.org/2000/drawing" xmlns:text="http://openoffice.org/2000/text" xmlns:svg="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"/></p> </span></td><td class="Tabelle3A1" style="text-align:left;"><span class="Tabelle3C"> <p class="Paragraph">Click the <span class="T1">Save</span> icon or <span class="T1">Save As</span> to save the created or modified query.</p> </span></td></tr></table> <p class="Paragraph"/> <p class="ParaList"><help:embedded Id="65598" Eid="related" xmlns:help="http://openoffice.org/2000/help"/></p> <p class="ParaList"><help:embedded Id="68433" Eid="database_main" xmlns:help="http://openoffice.org/2000/help"/></p> </body></html>